//
//  NSAttributedString+Lc.h
//  18Birdies
//
//  Created by Lc on 15/4/5.
//  Copyright (c) 2015年 Lc. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@class LcFont;

@interface NSAttributedString (Lc)

+ (NSAttributedString*)attributedStringWithString:(NSString*)string
                                           lcFont:(LcFont*)lcFont;
+ (NSAttributedString*)underlineStringWithString:(NSString*)string
                                          lcFont:(LcFont*)lcFont;
+ (NSAttributedString*)obliquenessStringWithString:(NSString*)string lcFont:(LcFont*)lcFont;

// change the text with <b></b> to bolded text
+ (NSMutableAttributedString*)attributedStringWithBoldTagString:(NSString*)boldTagString
                                                    regularFont:(LcFont*)font;
+ (NSMutableAttributedString*)attributedStringWithBoldTagString:(NSString*)boldTagString
                                                       boldFont:(LcFont*)boldFont
                                                    regularFont:(LcFont*)regularFont;

// change the text with <link></link> to link text
+ (NSMutableAttributedString*)attributedLinkTagString:(NSString*)linkTagString
                                          regularFont:(LcFont*)regularFont
                                                 urls:(NSArray<NSURL*>*)urls;
+ (NSMutableAttributedString*)attributedLinkTagString:(NSString*)linkTagString
                                          regularFont:(LcFont*)regularFont
                                             linkFont:(LcFont*)linkFont
                                                 urls:(NSArray<NSURL*>*)urls;

- (NSAttributedString*)replaceSubString:(NSString*)subString lcFont:(LcFont*)lcFont;
- (NSAttributedString*)replaceSubStrings:(NSArray<NSString*>*)subStrings lcFont:(LcFont*)lcFont;
- (NSAttributedString*)replaceSubString:(NSString*)subString
                               attriStr:(NSAttributedString*)replaceAttriStr;
// size
- (CGSize)sizeWithPreferredWidth:(float)width;

// paragraphStyle
- (NSAttributedString*)attributedStringWithFontSpcaing:(float)fontSpaceing;
- (NSAttributedString*)attributedStringWithLineSpacing:(float)lineSpacing;
- (NSAttributedString*)attributedStringWithParagraphSpacing:
    (float)paragraphSpacing;

@end
